# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer:  Michael Mason <ms13sp@gmail.com>
pkgname=perl-net-rblclient
_realname=Net-RBLClient
pkgver=0.5
pkgrel=4
pkgdesc="Queries multiple Realtime Blackhole Lists in parallel"
url="https://metacpan.org/release/Net-RBLClient/"
arch="noarch"
license="Artistic GPL-2.0"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AB/ABLUM/$_realname-$pkgver.tar.gz"
builddir="$srcdir/RBLCLient-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$srcdir/RBLCLient-$pkgver"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="8991c21b22c083b82f79e1c8ffb59cc414731013610361bb192df5533bc56a0de4061d46905d7b1dd213d90f247ad5927955906a28a06ff1d3d135401c560d7e  Net-RBLClient-0.5.tar.gz"
